Skip to content

Launcher color change propType added #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

NaumanMoazzam
Copy link

Description

Launcher color can be changed by the user

Checklist

  • [x ] Additions/changes follow the current code structure
  • [ x] All changes are related to a single topic
  • [ x] Demo tested (npm start) to ensure it still functions as expected, and/or
  • [ x] New features are demonstrated to the demo (leave checkbox blank if not applicable)
  • Readme/docs are updated
  • [ x] npm run lint passes (npm run lint -- --fix will autofix where possible)

@NaumanMoazzam NaumanMoazzam requested review from heatherbooker, nnur and dharness and removed request for heatherbooker June 22, 2020 10:00
@NaumanMoazzam NaumanMoazzam self-assigned this Jun 22, 2020
@@ -47,7 +47,7 @@ class Launcher extends Component {
];
return (
<div id="sc-launcher">
<div className={classList.join(' ')} onClick={this.handleClick.bind(this)}>
<div className={classList.join(' ')} onClick={this.handleClick.bind(this)} style={{background: `${this.props.launcherColor}`}}>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be preferable to do this via the classList - inline styles can create confusion down the line.

@@ -11,7 +11,7 @@ class Launcher extends Component {
super();
this.state = {
launcherIcon,
isOpen: false
isOpen: false,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's be consistent with our commas across the repo. If there is not consistency already, this change is unwarranted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants